package cn.wolfcode.luowowo.comment.dumain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Document("strategy_comment")
public class StrategyComment implements Serializable {

    @Id
    private String id; // mongodb默认的是id
    private Long detailId; // 攻略(明细)id
    private String detailTitle; // 游记标题
    private Long userId; // 用户id
    private String username; // 用户名
    private String city; // 城市
    private int level;
    private String headUrl; // 头像
    private Date createTime; // 创建时间
    private String content; // 评论内容
    private int thumbupnum; // 点赞数
    private List<Long> thumbuplist = new ArrayList<>();


}
